package hotel.base.oversea.constant.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <H1>飞猪</H1>
 *
 * @author HuangT
 * @Date 2020/8/21 17:17
 */
public class FpEnums {

    /**
     * api返回信息
     */
    @Getter
    @AllArgsConstructor
    public enum fpMsgEnum {
        MSG_SUCCESS(200, "请求成功!"),
        MSG_ERROR(1001, "请求异常!"),
        HOTEL_NO_MATCHING(1002, "酒店未匹配成功"),
        ROOM_NO_MATCHING(1003, "房型未匹配成功");
        private final int code;
        private final String msg;
    }

    /**
     * 订单试单结果
     */
    @Getter
    @AllArgsConstructor
    public enum fpCheckOrderEnum {
        CHECK_SUCCESS("0", "处理成功"),
        CHECK_ERROR_FULL("-1", "处理失败-满房"),
        CHECK_ERROR_PRICE("-2", "处理失败-价格计划问题"),
        CHECK_ERROR_SHORTAGE("-3", "处理失败-房量不足"),
        CHECK_ERROR_OTHER("-4", "其他失败");
        private final String code;
        private final String msg;
    }

    /**
     * 订单取消结果
     */
    @Getter
    @AllArgsConstructor
    public enum fpCancelOrderEnum {
        CANCEL_SUCCESS("0", "取消成功"),
        CANCEL_FAIL("-200", "取消失败"),
        CANCEL_NOT_EXIST("-204", "不存此订单"),
        CANCEL_ALREADY("-205", "订单已取消"),
        CANCEL_NOT_ALLOWED("-206", "退订政策不允许取消"),
        CANCEL_ASYN("-100", "订单取消中");
        private final String code;
        private final String msg;
    }

}
